package com.upcode.weighing.exception;

/**
 * Excel专用异常类
 */
public class ExcelException extends Exception {

    private int code;

    private String message;

    public ExcelException(String message) {
        super(message);
        this.code = 400;
        this.message = message;
    }

    public ExcelException(String message, Throwable cause) {
        super(message, cause);
        this.code = 400;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
